package com.alibaba.serverless.domain;

import com.alibaba.serverless.common.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * Smtp模板
 * @author mac_zyj
 */
public class SmtpTemplate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 邮件标题 */
    private String title;

    /** 模板版本 */
    private String version;

    /** 模板名称 */
    private String fileName;

    /** 模块名称 */
    private String model;

    /** 模板路径 */
    private String templateLocal;

    /** 是否为默认模板默认 */
    private String isDefault;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setTemplateLocal(String templateLocal)
    {
        this.templateLocal = templateLocal;
    }

    public String getTemplateLocal()
    {
        return templateLocal;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("version", getVersion())
                .append("model", getModel())
                .append("templateLocal", getTemplateLocal())
                .append("isDefault", getIsDefault())
                .toString();
    }
}
